app.controller("addChildEleCtrl", ["$scope", '$modalInstance', function($scope, $modalInstance){
    $scope.info={};

    $scope.buttonsClick = function(x){
        console.log(x)
        if(x == 'save'){
            $modalInstance.dismiss(true);
        }
        if(x == 'cancel'){
            $modalInstance.dismiss(false);
        }
    }

}])